using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace FinanceAnalyzer
{
    public class MonthlyDB 
    {
        private Dictionary<String, double> _flowDB;

        public MonthlyDB()
        {
            _flowDB = new Dictionary<string, double>();
        }

        public void Add(String comment, double value)
        {
            _flowDB.Add(comment, value);
        }


        //public double this[int index]
        //{
        //    get { return (double)_flowDB.Values; }
        //    set { _flowDB[index] = value; }
        //}

        public double Sum()
        {
            double sum = 0;

            foreach (double var in _flowDB.Values)
            {
                sum += var;
            }

            return sum;
        }	
        
        public void Remove(int index)
        {


        }

    }
}
